package ca.ericslandry.client.mvp.presenter;

import net.customware.gwt.presenter.client.EventBus;

import com.allen_sauer.gwt.log.client.Log;
import com.google.gwt.user.client.ui.Widget;
import com.google.inject.Inject;

public class ContentPresenter extends BasePresenter<ContentPresenter.Display> {
	public interface Display extends BasePresenter.BaseDisplay {
		void setContent(Widget widget);

		void pop();
	}

	@Inject
	public ContentPresenter(final Display display, final EventBus eventBus) {
		super(display, eventBus);
		bind();
	}

	@Override
	protected void onBind() {
		Log.debug("onBind: content");
//		// To set the default content to issue list, fire this
//		eventBus.fireEvent(new PlaceRequestEvent(new PlaceRequest(IssueListPresenter.PLACE)));
	}
}
